package com.cloud.job;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = {"com.cloud.job.mapper"})
public class JobApplication {

    private static Logger logger = LoggerFactory.getLogger(JobApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(JobApplication.class, args);
        logger.info("|-------------------------------------------------------------------------------------------------|");
        logger.info("|-----------------------------                                         ---------------------------|");
        logger.info("|<--------------- ღ( ´･ᴗ･` ) |         job system start success       | ( ´･ᴗ･` )ღ--------------->|");
        logger.info("|<--------------- ღ( ´･ᴗ･` ) |           任 务 服 务 启 动 完 毕         | ( ´･ᴗ･` )ღ--------------->|");
        logger.info("|-----------------------------                                         ---------------------------|");
        logger.info("|-------------------------------------------------------------------------------------------------|");
    }

}
